<?php

class TintucController extends Henry_Controller_Action
{
    public function init()
    {
        parent::init();
        $this->_helper->layout->setLayout('other');
    }
    public function indexAction(){
        $id = $this->_request->getParam("id");
        $serviceOb = new Henry_NewsCategories_Categories();
        $tmp = $serviceOb->find($id)->toArray();
        $this->view->newCatItem = $tmp[0];

        $newOb = new Henry_News_News();
        $tmp = $newOb->fetchAll("categories_id = '$id'","create_date desc")->toArray();
        $this->view->item = $tmp[0];
        unset ($tmp[0]);
        $this->view->newsItem = $tmp;
    }


}

